package com.info.zhiduoduo.repository.entity.maker;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


@Data
@Accessors(chain = true)
@TableName("zdd_custodian_modification_record")
public class CustodianModificationRecord extends Model<CustodianModificationRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("创客id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("前负责人ID")
    @TableField("front_duty_id")
    private Integer frontDutyId;

    @ApiModelProperty("描述")
    @TableField("describes")
    private String describes;

    @ApiModelProperty("操作人ID")
    @TableField("operator_id")
    private Integer operatorId;

    @ApiModelProperty("创建时间")
    @TableField("createtime")
    private Date createtime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}